-- GENERATED SPELL FOR [Forgotten Rifleman] --


function spell0_27225(pUnit, Event) --@Concussive Shot,n/a--
pUnit:FullCastSpellOnTarget(17174,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27225', 3278, 1)
end

function spell1_27225(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(15547,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27225', 616, 1)
end

function Sorts_27225(pUnit, Event)
local choix_sorts_27225 = math.random(0, 1)
if choix_sorts_27225 == 0 then
pUnit:RegisterEvent('spell0_27225', 1, 1)
end
if choix_sorts_27225 == 1 then
pUnit:RegisterEvent('spell1_27225', 1, 1)
end
end

function mob27225_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27225', math.random(1500, 3000), 1)
end

function mob27225_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27225_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27225_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27225, 1, 'mob27225_Action')
RegisterUnitEvent(27225, 2, 'mob27225_Leave')
RegisterUnitEvent(27225, 3, 'mob27225_Kill')
RegisterUnitEvent(27225, 4, 'mob27225_Die')
